package com.netease.financial.common.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

/**
 * Created by wyf on 7/30/15.
 */
public class DateUtil {
    public static String getFormattedDate(long timeMills, String strFormat) {
        SimpleDateFormat format = new SimpleDateFormat(strFormat, Locale.CHINA);
        Date date = new Date(timeMills);
        return format.format(date);
    }
}
